package com.itlong.cloud.POJO.PO;

import com.itlong.cloud.annotation.ItlField;
import com.itlong.cloud.annotation.ItlTables;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;



/**
* <desc>
*    楼栋信息实体类.
* </desc>
*
* @createDate 2017-09-21
*/
@ItlTables("build_info")
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class BuildInfoPO extends BasePO  implements Serializable {

    @ItlField(value = "build_id",logicKey = "key")
    private String buildId; //楼栋id

    @ItlField("build_num")
    private String buildNum;  //楼栋编号，3位，001-999

    @ItlField("project_id")
    private String projectId; //项目编号

    @ItlField("build_name")
    private String buildName; //楼栋名称

    @ItlField("ground_floor_num")
    private Integer groundFloorNum; //地面楼层数 1-99的自然数

    @ItlField("underground_floor_num")
    private Integer undergroundFloorNum; //地下楼层数 0-98的自然数

    @ItlField("floor_num")
    private Integer floorNum;//总楼层数，1-99的自然数

    @ItlField("build_type")
    private Integer buildType; //楼栋类型

    @ItlField("remark")
    private String remark; //备注

    public BuildInfoPO(String projectId,String buildId, String buildNum, String buildName, Integer floorNum) {
        this.buildId = buildId;
        this.buildNum = buildNum;
        this.projectId = projectId;
        this.buildName = buildName;
        this.floorNum = floorNum;
    }

    public BuildInfoPO(String projectId,String buildNum) {
        this.buildNum = buildNum;
        this.projectId = projectId;
    }
}
